//
//  RecordManager.h
//  phonebook
//
//  Created by dyang26 on 10/10/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>


@interface RecordManager : NSObject {
    NSMutableArray *records;
}


+ (RecordManager *)sharedManager;
- (NSArray *)names;
- (void)removeRecord:(NSMutableDictionary *)record;
- (int)numberOfContact;
- (void)loadRecords;
- (void)saveRecords;
- (void)saveNewRecords:(NSMutableDictionary *)newContact;
- (NSMutableDictionary *) createNewContact;
- (NSMutableDictionary *)profileAtIndex:(int)index;
- (NSString *)nameOfContactAtIndex:(int)index;
- (NSString *)phoneNumberOfContactAtIndex:(int)index;
- (NSString *)addressOfContactAtIndex:(int)index;
- (NSString *)emailOfContactAtIndex:(int)index;
- (NSString *)imageURLOfContactAtIndex:(int)index;
- (int) indexOfContact:(NSMutableDictionary *)contact;
/*
- (NSMutableDictionary *)noteAtIndex:(int)index;
- (NSString *)contentOfNoteAtIndex:(int)index;
- (int)indexOfNote:(NSMutableDictionary *)note;
- (NSMutableDictionary *)notesAtIndex:(int)index;
- (NSMutableDictionary *)createNewNote;
*/

@end
